package com.wlyuan.open.scanner.domain.user;

import com.wlyuan.open.scanner.domain.BaseDomain;
import com.wlyuan.open.scanner.utils.enums.SourceInvalidEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDate;
import java.util.List;

/**
 * @author lijing
 * @description
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class User extends BaseDomain {

    private Long id;

    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("类型 1 普通用户 2 微信用户")
    private Integer type;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("账号")
    private String account;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("昵称")
    private String nick;
    @ApiModelProperty("性别")
    private Integer gender;
    @ApiModelProperty("生日")
    private LocalDate birthday;
    @ApiModelProperty("部门")
    private String department;
    @ApiModelProperty("岗位")
    private String position;
    private SourceInvalidEnum userInvalid;

    private List<Long> roles;

    @ApiModelProperty("微信昵称")
    private String nickName;
    @ApiModelProperty("微信头像")
    private String portrait;
    @ApiModelProperty("openid")
    private String openId;
    @ApiModelProperty("是否需要别名登录")
    private Integer isAlias;

}
